#!/bin/bash

INSTPATH="$PWD"

# Some common build types

configbuild() {
    bash configure --prefix="$INSTPATH/result" $CONFIGURE_FLAGS &&
    make $MAKE_FLAGS &&
    make install $MAKE_INSTALL_FLAGS
}

makebuild() {
    make PREFIX="$INSTPATH/result" $MAKE_FLAGS &&
    make install PREFIX="$INSTPATH/result" $MAKE_INSTALL_FLAGS
}

keepresult() {
    mkdir "$INSTPATH/inst"
    cp -pRf "$INSTPATH/result"/* "$INSTPATH/inst/"
}

. go.sh
